const interpreter = require('./interpreter')

export default function(codeStr){
  let parseCode = null
  let setVariable = (param) => parseCode = param
  interpreter.run(` setVariable(${codeStr}) `, {setVariable} )
  return parseCode
}